<%--
  Created by IntelliJ IDEA.
  User: cfy
  Date: 2018/7/23
  Time: 上午9:56
  To change this template use File | Settings | File Templates.
--%>
<%--<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>--%>
<%--<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  &lt;%&ndash;JSP标准标签库&ndash;%&gt;--%>
<%--<html>--%>
<%--<head>--%>
    <%--<title>ICBC Login</title>--%>
<%--</head>--%>
<%--<body>--%>
<%--<c:if test="${!empty error}">--%>
    <%--<font color="red"><c:out value="${error}" /></font>--%>
<%--</c:if>--%>
<%--<form action="<c:url value="/loginCheck"/>" method="post">      &lt;%&ndash;这里设置下一页面的导向&ndash;%&gt;--%>
    <%--用户名：--%>
    <%--<input type="text" name="userName">--%>
    <%--<br>--%>
    <%--密 码：--%>
    <%--<input type="password" name="password">--%>
    <%--<br>--%>
    <%--<input type="submit" value="登录" />--%>
    <%--<input type="reset" value="重置" />--%>
<%--</form>--%>
<%--</body>--%>
<%--</html>--%>

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>

    <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../css/login.css">



</head>
<body>
<div class="container">
    <div class="form row">
        <div class="form-horizontal col-md-offset-3" id="login_form">
            <h3 class="form-title">LOGIN</h3>
            <div class="col-md-9">
                <form action="/loginCheck" method="post">
                    <div class="form-group">
                        <i class="fa fa-user fa-lg"></i>
                        <input class="form-control required" type="text" placeholder="Username"
                               id="userName" name="userName" autofocus="autofocus" maxlength="20"/>
                    </div>
                    <div class="form-group">
                        <i class="fa fa-lock fa-lg"></i>
                        <input class="form-control required" type="password" placeholder="Password"
                               id="password" name="password" maxlength="8"/>   <%--这里出现的name必须和LoginInfo类中的属性一致--%>
                    </div>
                    <div class="form-group">
                        <label class="checkbox">
                            <input type="checkbox" name="remember" value="1"/>记住我
                        </label>
                    </div>
                    <div class="form-group col-md-offset-9">
                        <button type="submit" class="btn btn-success pull-right" name="submit">登录</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>

